package router

import (
	"api/internal/api"
	"api/internal/middleware"
	"github.com/gin-gonic/gin"
)

func TicketRouter(c *gin.RouterGroup) {
	ticketRouter := c.Group("ticket").Use(middleware.MiddleWare())
	{
		ticketRouter.POST("find", api.FindDate)
		ticketRouter.POST("findTicket", api.FindTicket)
		ticketRouter.POST("createTicket", api.CreateTicket)
		ticketRouter.POST("findSeat", api.FindSeat)
	}
}
